package com.demo.understandmvc.modelAttribute;

import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

	@RequestMapping("/modelattr/{name}")
	public String modelattr(@ModelAttribute PersionData data) {
		return "defaultView";
	}

}
